import axiosInstance from './axiso';


export function list(data: any) {
  return axiosInstance.get<any>('/role/list', data);
}


export function add(data: any) {
  return axiosInstance.post<any>('/role/add', data);
}

export function edit(data: any) {
  return axiosInstance.post<any>('/role/edit', data);
}

export function del(data: any) {
  return axiosInstance.post<any>('/role/del', data);
}

export function listAll(data: any) {
  return axiosInstance.get<any>('/role/list_all', data);
}

export function roleSystemList(data: any) {
  return axiosInstance.get<any>('/system_role/system_list', data);
}

export function menuList(data: any) {
  return axiosInstance.post<any>('/menu/list', data);
}

export function menuRoleList(data: any) {
  return axiosInstance.post<any>('/menu_role/list', data);
}

export function menuRoleAdd(data: any) {
  return axiosInstance.post<any>('/menu_role/add', data);
}

